package cn.tedu.ivos.user.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class UserVO {
    @ApiModelProperty(value = "用户id")
    Long id;
    @ApiModelProperty(value = "用户名")
    String username;
    @ApiModelProperty(value = "密码")
    String password;
    @ApiModelProperty(value = "邮箱")
    String email;
    @ApiModelProperty(value = "手机号")
    String phone;
    @ApiModelProperty(value = "年龄")
    Integer age;
    @ApiModelProperty(value = "性别")
    String gender;
    @ApiModelProperty(value = "用户状态")
    String status;
    @ApiModelProperty(value = "用户职级")
    String level;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date updateTime;
    @ApiModelProperty(value = "上级id")
    Long parentId;
}